package net.wofly.sale.order.domain;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 订单类型
 *
 * @author lign
 * @version 1.0
 * @created 29-1月-2018 22:25:49
 */
@Data
@Entity
@Table(name = "sale_order_ordertype")
@ApiModel(description = "订单类型")
public class OrderType implements Cloneable{
    
    @Id
    @ApiModelProperty(value = "订单类型ID")
    private String orderTypeID;
    
    @ApiModelProperty(value = "订单类型名称")
    private String orderTypeName;
    private Integer status = 1;
    private Long modifyDate;
    
    @ApiModelProperty(value = "是否默认")
    @Transient
    private Integer isDefault = 0;
    
    public OrderType() {
    
    }
    
    @Override
    public void finalize() throws Throwable {
    
    }
    
    @Override
    public OrderType clone() throws CloneNotSupportedException {
        return (OrderType)super.clone();
    }
}